package trie;

import java.util.ArrayList;
import java.util.Iterator;

public class StringIterator implements Iterator {
	private String myString;
	private Iterator myIterator;
	public StringIterator(String myString){
		this.myString = myString;
		ArrayList myCharList = new ArrayList();
		for(int i=0; i< myString.length(); i++){
			myCharList.add(new Integer(myString.charAt(i)));
		}
		myIterator = myCharList.iterator();
	}
	
	@Override
	public boolean hasNext() {
		return myIterator.hasNext();
	}
//asdf
	@Override
	public Object next() {
		return myIterator.next();
	}

	public void remove(Object i) {
		
	}

	@Override
	public void remove() {
		// TODO Auto-generated method stub
		
	}
	
}
